#ifndef ___TEMP__CTRL___
#define ___TEMP__CTRL___
#include "MCUConfig.h"

//ʹ�õ���100Kŷ 3950��NTC
#define R100B3950 0
////ʹ�õ���100Kŷ 3950��NTC 2K��������
#define R100B3950PD2001 1
//12bit adc
#define MAX_ADC_VALUE 4096.0
//2K
#define RESIST 2.0

extern float CentigradeToADC(float CentiGrade);

extern float ADCToCentigrade(float ADCValue);

extern float CentigradeCompensate(short Temp);

extern float CentigradeCompensateAb(short Temp);

extern void ClearTemp(short Temp);

extern bool PIDCtrlTemp(short dstTemp, short currentTemp);

extern void ClearTemp1(short Temp);

extern bool PIDCtrlTemp1(short dstTemp, short currentTemp);

extern int resetData(u8 FunSel);

#endif
